package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.FormCustomerMapper;
import com.ruoyi.order.domain.FormCustomer;
import com.ruoyi.order.service.IFormCustomerService;

/**
 * 客户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-29
 */
@Service
public class FormCustomerServiceImpl implements IFormCustomerService 
{
    @Autowired
    private FormCustomerMapper formCustomerMapper;

    /**
     * 查询客户信息
     * 
     * @param frmCtmcode 客户信息ID
     * @return 客户信息
     */
    @Override
    public FormCustomer selectFormCustomerById(String frmCtmcode)
    {
        return formCustomerMapper.selectFormCustomerById(frmCtmcode);
    }

    /**
     * 查询客户信息列表
     * 
     * @param formCustomer 客户信息
     * @return 客户信息
     */
    @Override
    public List<FormCustomer> selectFormCustomerList(FormCustomer formCustomer)
    {
        return formCustomerMapper.selectFormCustomerList(formCustomer);
    }

    /**
     * 新增客户信息
     * 
     * @param formCustomer 客户信息
     * @return 结果
     */
    @Override
    public int insertFormCustomer(FormCustomer formCustomer)
    {
        return formCustomerMapper.insertFormCustomer(formCustomer);
    }

    /**
     * 修改客户信息
     * 
     * @param formCustomer 客户信息
     * @return 结果
     */
    @Override
    public int updateFormCustomer(FormCustomer formCustomer)
    {
        return formCustomerMapper.updateFormCustomer(formCustomer);
    }

    /**
     * 批量删除客户信息
     * 
     * @param frmCtmcodes 需要删除的客户信息ID
     * @return 结果
     */
    @Override
    public int deleteFormCustomerByIds(String[] frmCtmcodes)
    {
        return formCustomerMapper.deleteFormCustomerByIds(frmCtmcodes);
    }

    /**
     * 删除客户信息信息
     * 
     * @param frmCtmcode 客户信息ID
     * @return 结果
     */
    @Override
    public int deleteFormCustomerById(String frmCtmcode)
    {
        return formCustomerMapper.deleteFormCustomerById(frmCtmcode);
    }
}
